package com.excerise.recursion;

import com.excerise.recursion.entity.Demo01;

/**
 *
 *
 * @author Way on 2021/7/28
 */
public class Test {
    public static void main(String[] args) {
        Demo01 demo01 = new Demo01();
//        demo01.test(4);
//
//        int res = demo01.factorial(4);
//        System.out.println(res);

        int fibonacci = demo01.fibonacci(5);
        System.out.println(fibonacci);
    }
}
